package app

import (
	"fmt"

	"o78k.cn/dapi/app/plugins"
	"o78k.cn/dapi/core"
)

var POST = core.Http.POST
var GET = core.Http.GET
var PUT = core.Http.PUT
var DELETE = core.Http.DELETE

func ApplicationRUn() {
	lisent := fmt.Sprintf("%s:%d", core.Config.Application.Host, core.Config.Application.Port)
	core.Http.Static(core.Config.Application.Static.URL, core.Config.Application.Static.Path)
	core.Http.Use(plugins.Authentication())
	core.Http.Run(lisent)
}
